#if !defined(AFX_CATALOGTREEVIEW_H__55172641_AB64_452C_B952_F92C0EC6D07D__INCLUDED_)
#define AFX_CATALOGTREEVIEW_H__55172641_AB64_452C_B952_F92C0EC6D07D__INCLUDED_

#pragma once

#include "CatalogTreeCtrl.h"

class CCatalogTreeView : public CView
{
protected:
	CCatalogTreeView();
	DECLARE_DYNCREATE(CCatalogTreeView)

public:
	void FindByQueue();
	void LoadRoot();
	void FreeRoot();
	CHTreeCtrl* GetTreeCtrl() { return (CHTreeCtrl*) &m_treeCtrl; }

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCatalogTreeView)
	protected:
	virtual void OnDraw(CDC* pDC);      // overridden to draw this view
	//}}AFX_VIRTUAL

protected:
	virtual ~CCatalogTreeView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:
	HTREEITEM FindItemById(HTREEITEM hItem, int nNodeId);
	CCatalogTreeCtrl	m_treeCtrl;
	CImageList			m_imageList;

public:
	//{{AFX_MSG(CCatalogTreeView)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnCatalogUp();
	afx_msg void OnCatalogDown();
	afx_msg void OnCatalogDelete();
	afx_msg void OnCatalogNewdirec();
	afx_msg void OnCatalogNewfile();
	afx_msg void OnCatalogProp();
	afx_msg void OnUpdateCatalog(CCmdUI* pCmdUI);
	afx_msg void OnBookmark();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CATALOGTREEVIEW_H__55172641_AB64_452C_B952_F92C0EC6D07D__INCLUDED_)
